<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- 容器 -->
    <div id='test'></div>

    <script src="./js/react.development.js"></script>
    <script src="./js/react-dom.development.js"></script>
    <script src="./js/babel.min.js"></script>
    <!-- 
        全局存在 React ReactDOM
     -->
    <script type="text/babel">
        // 利用 jsx  babel
        // let DOMX = <div>hello react</div> 
        // 利用 React.createElement 
        let DOMX = React.createElement('h1',{id:'title'},'hello,react') // 1标签名 ，2标签属性，3标签体内容
        ReactDOM.render(DOMX,document.querySelector('#test'))
    </script>
</body>
</html>